<template>
  <div class="m-header">
    <div class="icon"></div>
    <h1 class="text">Chicken Music</h1>
    <router-link class="mine" tag="div" to="/user">
      <i class="icon-mine"></i>
    </router-link>
  </div>
</template>

<script type="text/ecmascript-6">
</script>

<style lang="stylus" scoped rel="stylesheet/stylus">
  @import '~common/stylus/variable';
  @import '~common/stylus/mixin';

  .m-header {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

    .icon {
      width: 30px;
      height: 32px;
      bg-image('logo');
      background-size: 100% 100%;
      background-repeat: no-repeat;
      margin-right: 6px;
    }

    .text {
      color: $color-theme;
      font-size: $font-size-large;
    }

    .mine {
      position: absolute;
      top: 0;
      right: 0;

      .icon-mine {
        display: inline-block;
        font-size: 20px;
        padding: 12px;
        color: $color-theme;
      }
    }
  }
</style>
